package net.huashitong.ssydt.provider.msg.service;


import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.msg.entity.SsMsgUserMessage;
import net.huashitong.ssydt.msg.entity.vo.MessageReadInVO;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.11.14
 */
public interface SsMsgUserMessageService extends LongService<SsMsgUserMessage> {

    /**
     * 批量插入
     *
     * @param ssMsgUserMessages
     * @return
     */
    int batchInsert(List<SsMsgUserMessage> ssMsgUserMessages);


    SsMsgUserMessage getByUserIdWithMessageId(String userId, Long messageId);

    int updateRead(MessageReadInVO messageReadInVO);
}
